package org.example.consumer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order-service")
public interface OrderFeign {
    @PostMapping("/order")
    void create(@RequestParam String userId,
                @RequestParam String commodityCode,
                @RequestParam int count,
                @RequestParam int money);
}